<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="toc.html">
<LINK REL="Prev" HREF="9125AddingiconstoGanttgraphs.html">
<LINK REL="Next" HREF="913SimplifyingthedrawingofGanttgraphs.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
A { text-decoration: none }
--></STYLE>
</HEAD>
<BODY>
<A HREF="toc.html">Contents</A>
<A HREF="9125AddingiconstoGanttgraphs.html">Previous</A>
<A HREF="913SimplifyingthedrawingofGanttgraphs.html">Next</A>
<HR NOSHADE>
<H3><A NAME="9_12_6">9.12.6 Adjusting the margins with auto-sizing</A></H3>
 As of version 1.17 it is possible to use Graph::SetMargin() to specify
 the margin for a Gantt graph even when the vertical height is
 determined automatically. For example to generate a graph with no left,
 right or bottom margin the following lines would be needed<DIV class="phpscript">
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$graph&nbsp;</FONT><FONT color="#007700">
=&nbsp;new&nbsp;</FONT><FONT color="#0000BB">GanttGraph</FONT><FONT color="#007700">
(</FONT><FONT color="#0000BB">500</FONT><FONT color="#007700">);
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
color="#0000BB">SetMargin</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
0</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">0</FONT><FONT
color="#007700">,</FONT><FONT color="#0000BB">30</FONT><FONT color="#007700">
,</FONT><FONT color="#0000BB">0</FONT><FONT color="#007700">);</FONT><FONT
color="#0000BB"></FONT></FONT></CODE></DIV>
<P></P>
<HR NOSHADE>
<A HREF="toc.html">Contents</A>
<A HREF="9125AddingiconstoGanttgraphs.html">Previous</A>
<A HREF="913SimplifyingthedrawingofGanttgraphs.html">Next</A>
</BODY>
</HTML>
